package com.bxw.forum.service;

import com.bxw.forum.model.Message;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface IMessageService {

    void create(Message message);

    int selectUnreadCount(Long receiveUserId);

    List<Message> selectByReceiveUserId(Long receiveUserId);

    void updateStateById(Long id,Byte state);

    Message selectById(Long id);

    @Transactional
    void reply(Long repliedId,Message message);
}
